<?php $this->load->view('admin/_header2') ?>

<table id="tt" class="easyui-datagrid" style="width:520px;height:auto;"> >
	<thead>
	<tr height=32 >
		<th field="name0" align=center  width=30 ></th>
		<th field="name1" align=center  width=80 >PlaneModel</th>
		<th field="name2" align=center  width=80>NickName</th>
		<th field="name3" align=center  width=80 >TotalY</th>
		<th field="name4" align=center  width=80>TotalC</th>
		<th field="name5" align=center  width=80>TotalF</th>
		<th field="name6" align=center  width=80></th>
	</tr>
	</thead>
	<tbody>
	<?php
	
	$index=0;
	foreach($airplaneResult as $item)
	{
		$index++;
	?><tr align=center >
		<td><?=$index?></td>
		<td><?=$item->PlaneModel ?></td>
		<td><?=$item->NickName ?></td>
		<td><?=$item->TotalY ?></td>
		<td><?=$item->TotalC  ?></td>
		<td><?=$item->TotalF ?></td>
		<td><a href=# style="color:orange" onclick="editAirplane('<?=$item->PlaneID?>');" >edit<a/></td>
	</tr>
	<?php
	}
	?></tbody>
</table>

<div id="addwin" class="easyui-window" title="edit Agent" closed="true" iconCls="icon-edit" style="width:680px;height:450px;padding:0px;background: #fafafa;">
	<div class="easyui-layout" fit="true">
		<div id="dvcontext" region="center" border="false" style="padding:10px;background:#fff;border:1px solid #ccc;">
			<iframe id="ifrawin" name="editcontext" src="" width=100% height=100% frameborder=0 ></iframe>
		</div>
	</div>
</div>

<script language="javascript">
	//编辑客户	
	function editAirplane(userid)
	{
		gd$("ifrawin").src="<?=site_url('admin/Airlines/editAirplane')?>/"+userid;
		$("#addwin").window({title:"edit Airplane"}).window('open');
			
	}
</script>
<?php $this->load->view('admin/_footer1') ?>